package com.glasses.business.base;


import com.glasses.business.R;

import net.neiquan.applibrary.wight.ProgressWebView;


/**
 * Created by cxh on 2016/8/29.
 */
public class BaseWebFragment extends AppBaseFragment {

    protected ProgressWebView mWebView;
    private String title;
    private String url;

    @Override
    public int getRootViewId() {
        return R.layout.activity_web;
    }

    @Override
    public void setViews() {
        // mLoadingView = findViewById(R.id.baseweb_loading_indicator);
        mWebView = (ProgressWebView) rootView.findViewById(R.id.baseweb_webview);
        mWebView.getSettings().setJavaScriptEnabled(true);
        if (getArguments() == null) {
            title = getArguments().getString("title");
            url = getArguments().getString("url");
            setTitleTv(title);
            if (url != null) {
                mWebView.loadUrl(url);
            }
        }
    }

    @Override
    public void initData() {

    }

    @Override
    public boolean mainTabShow() {
        return false;
    }

}
